package com.sinoatma.physignsmonitor.adapter



import android.annotation.SuppressLint
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.clj.fastble.data.BleDevice
import com.common.frame.base.BaseAdapter
import com.sinoatma.physignsmonitor.R
import com.sinoatma.physignsmonitor.databinding.DeviceListLayoutBinding

@SuppressLint("MissingPermission")
class DevicesBleAdapter(data: MutableList<BleDevice>?) : BaseAdapter<BleDevice,DeviceListLayoutBinding>(R.layout.device_list_layout,data) {
    override fun convert(holder: BaseDataBindingHolder<DeviceListLayoutBinding>, item: BleDevice) {
      holder.dataBinding?.run {
          tvDevicesMac.text=item.device.address
          tvDevicesName.text=item.device.name
      }
    }
}




